home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / usenet / sources / volume90 / aplictns / route_10 / part03 / pcbview.h < prev    next >
C/C++ Source or Header  |  1990-04-23  |  15KB  |  414 lines

  1.  
  2. struct NewScreen NewScreenStructure = {
  3.     0,0,    /* screen XY origin relative to View */
  4.     640,512,    /* screen width and height */
  5.     3,    /* screen depth (number of bitplanes) */
  6.     0,5,    /* detail and block pens */
  7.     LACE+HIRES,    /* display modes for this screen */
  8.     CUSTOMSCREEN,    /* screen type */
  9.     NULL,    /* pointer to default screen font */
  10.     (UBYTE *)"PCBView",    /* screen title */
  11.     NULL,    /* first in list of custom screen gadgets */
  12.     NULL    /* pointer to custom BitMap structure */
  13. };
  14.  
  15. #define NEWSCREENSTRUCTURE NewScreenStructure
  16.  
  17. USHORT Palette[] = {
  18.     0x0322,    /* color #0 */
  19.     0x000F,    /* color #1 */
  20.     0x0F00,    /* color #2 */
  21.     0x00FF,    /* color #3 */
  22.     0x00F0,    /* color #4 */
  23.     0x0FFF,    /* color #5 */
  24.     0x0000,    /* color #6 */
  25.     0x0FF0    /* color #7 */
  26. #define PaletteColorCount 8
  27. };
  28.  
  29. #define PALETTE Palette
  30.  
  31. struct IntuiText IText1 = {
  32.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  33.     0,0,    /* XY origin relative to container TopLeft */
  34.     NULL,    /* font pointer or NULL for default */
  35.     (UBYTE *)"Minimum shrink",    /* pointer to text */
  36.     NULL    /* next IntuiText structure */
  37. };
  38.  
  39. struct MenuItem MenuItem4 = {
  40.     NULL,    /* next MenuItem structure */
  41.     0,24,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  42.     128,8,    /* hit box width and height */
  43.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  44.     0,    /* each bit mutually-excludes a same-level Item */
  45.     (APTR)&IText1,    /* Item render  (IntuiText or Image or NULL) */
  46.     NULL,    /* Select render */
  47.     NULL,    /* alternate command-key */
  48.     NULL,    /* SubItem list */
  49.     MENUNULL    /* filled in by Intuition for drag selections */
  50. };
  51.  
  52. struct IntuiText IText2 = {
  53.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  54.     0,0,    /* XY origin relative to container TopLeft */
  55.     NULL,    /* font pointer or NULL for default */
  56.     (UBYTE *)"Shrink one level",    /* pointer to text */
  57.     NULL    /* next IntuiText structure */
  58. };
  59.  
  60. struct MenuItem MenuItem3 = {
  61.     &MenuItem4,    /* next MenuItem structure */
  62.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  63.     128,8,    /* hit box width and height */
  64.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  65.     0,    /* each bit mutually-excludes a same-level Item */
  66.     (APTR)&IText2,    /* Item render  (IntuiText or Image or NULL) */
  67.     NULL,    /* Select render */
  68.     NULL,    /* alternate command-key */
  69.     NULL,    /* SubItem list */
  70.     MENUNULL    /* filled in by Intuition for drag selections */
  71. };
  72.  
  73. struct IntuiText IText3 = {
  74.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  75.     0,0,    /* XY origin relative to container TopLeft */
  76.     NULL,    /* font pointer or NULL for default */
  77.     (UBYTE *)"Maximum zoom",    /* pointer to text */
  78.     NULL    /* next IntuiText structure */
  79. };
  80.  
  81. struct MenuItem MenuItem2 = {
  82.     &MenuItem3,    /* next MenuItem structure */
  83.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  84.     128,8,    /* hit box width and height */
  85.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  86.     0,    /* each bit mutually-excludes a same-level Item */
  87.     (APTR)&IText3,    /* Item render  (IntuiText or Image or NULL) */
  88.     NULL,    /* Select render */
  89.     NULL,    /* alternate command-key */
  90.     NULL,    /* SubItem list */
  91.     MENUNULL    /* filled in by Intuition for drag selections */
  92. };
  93.  
  94. struct IntuiText IText4 = {
  95.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  96.     0,0,    /* XY origin relative to container TopLeft */
  97.     NULL,    /* font pointer or NULL for default */
  98.     (UBYTE *)"Zoom one level",    /* pointer to text */
  99.     NULL    /* next IntuiText structure */
  100. };
  101.  
  102. struct MenuItem MenuItem1 = {
  103.     &MenuItem2,    /* next MenuItem structure */
  104.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  105.     128,8,    /* hit box width and height */
  106.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  107.     0,    /* each bit mutually-excludes a same-level Item */
  108.     (APTR)&IText4,    /* Item render  (IntuiText or Image or NULL) */
  109.     NULL,    /* Select render */
  110.     NULL,    /* alternate command-key */
  111.     NULL,    /* SubItem list */
  112.     MENUNULL    /* filled in by Intuition for drag selections */
  113. };
  114.  
  115. struct Menu Menu3 = {
  116.     NULL,    /* next Menu structure */
  117.     116,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  118.     39,0,    /* Menu hit box width and height */
  119.     MENUENABLED,    /* Menu flags */
  120.     "Size",    /* text of Menu name */
  121.     &MenuItem1    /* MenuItem linked list pointer */
  122. };
  123.  
  124. struct IntuiText IText5 = {
  125.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  126.     0,0,    /* XY origin relative to container TopLeft */
  127.     NULL,    /* font pointer or NULL for default */
  128.     (UBYTE *)"Down by 10",    /* pointer to text */
  129.     NULL    /* next IntuiText structure */
  130. };
  131.  
  132. struct MenuItem MenuItem12 = {
  133.     NULL,    /* next MenuItem structure */
  134.     0,56,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  135.     88,8,    /* hit box width and height */
  136.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  137.     0,    /* each bit mutually-excludes a same-level Item */
  138.     (APTR)&IText5,    /* Item render  (IntuiText or Image or NULL) */
  139.     NULL,    /* Select render */
  140.     NULL,    /* alternate command-key */
  141.     NULL,    /* SubItem list */
  142.     MENUNULL    /* filled in by Intuition for drag selections */
  143. };
  144.  
  145. struct IntuiText IText6 = {
  146.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  147.     0,0,    /* XY origin relative to container TopLeft */
  148.     NULL,    /* font pointer or NULL for default */
  149.     (UBYTE *)"Down by 1",    /* pointer to text */
  150.     NULL    /* next IntuiText structure */
  151. };
  152.  
  153. struct MenuItem MenuItem11 = {
  154.     &MenuItem12,    /* next MenuItem structure */
  155.     0,48,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  156.     88,8,    /* hit box width and height */
  157.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  158.     0,    /* each bit mutually-excludes a same-level Item */
  159.     (APTR)&IText6,    /* Item render  (IntuiText or Image or NULL) */
  160.     NULL,    /* Select render */
  161.     NULL,    /* alternate command-key */
  162.     NULL,    /* SubItem list */
  163.     MENUNULL    /* filled in by Intuition for drag selections */
  164. };
  165.  
  166. struct IntuiText IText7 = {
  167.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  168.     0,0,    /* XY origin relative to container TopLeft */
  169.     NULL,    /* font pointer or NULL for default */
  170.     (UBYTE *)"Up by 10",    /* pointer to text */
  171.     NULL    /* next IntuiText structure */
  172. };
  173.  
  174. struct MenuItem MenuItem10 = {
  175.     &MenuItem11,    /* next MenuItem structure */
  176.     0,40,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  177.     88,8,    /* hit box width and height */
  178.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  179.     0,    /* each bit mutually-excludes a same-level Item */
  180.     (APTR)&IText7,    /* Item render  (IntuiText or Image or NULL) */
  181.     NULL,    /* Select render */
  182.     NULL,    /* alternate command-key */
  183.     NULL,    /* SubItem list */
  184.     MENUNULL    /* filled in by Intuition for drag selections */
  185. };
  186.  
  187. struct IntuiText IText8 = {
  188.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  189.     0,0,    /* XY origin relative to container TopLeft */
  190.     NULL,    /* font pointer or NULL for default */
  191.     (UBYTE *)"Up by 1",    /* pointer to text */
  192.     NULL    /* next IntuiText structure */
  193. };
  194.  
  195. struct MenuItem MenuItem9 = {
  196.     &MenuItem10,    /* next MenuItem structure */
  197.     0,32,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  198.     88,8,    /* hit box width and height */
  199.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  200.     0,    /* each bit mutually-excludes a same-level Item */
  201.     (APTR)&IText8,    /* Item render  (IntuiText or Image or NULL) */
  202.     NULL,    /* Select render */
  203.     NULL,    /* alternate command-key */
  204.     NULL,    /* SubItem list */
  205.     MENUNULL    /* filled in by Intuition for drag selections */
  206. };
  207.  
  208. struct IntuiText IText9 = {
  209.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  210.     0,0,    /* XY origin relative to container TopLeft */
  211.     NULL,    /* font pointer or NULL for default */
  212.     (UBYTE *)"Right by 10",    /* pointer to text */
  213.     NULL    /* next IntuiText structure */
  214. };
  215.  
  216. struct MenuItem MenuItem8 = {
  217.     &MenuItem9,    /* next MenuItem structure */
  218.     0,24,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  219.     88,8,    /* hit box width and height */
  220.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  221.     0,    /* each bit mutually-excludes a same-level Item */
  222.     (APTR)&IText9,    /* Item render  (IntuiText or Image or NULL) */
  223.     NULL,    /* Select render */
  224.     NULL,    /* alternate command-key */
  225.     NULL,    /* SubItem list */
  226.     MENUNULL    /* filled in by Intuition for drag selections */
  227. };
  228.  
  229. struct IntuiText IText10 = {
  230.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  231.     0,0,    /* XY origin relative to container TopLeft */
  232.     NULL,    /* font pointer or NULL for default */
  233.     (UBYTE *)"Right by 1",    /* pointer to text */
  234.     NULL    /* next IntuiText structure */
  235. };
  236.  
  237. struct MenuItem MenuItem7 = {
  238.     &MenuItem8,    /* next MenuItem structure */
  239.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  240.     88,8,    /* hit box width and height */
  241.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  242.     0,    /* each bit mutually-excludes a same-level Item */
  243.     (APTR)&IText10,    /* Item render  (IntuiText or Image or NULL) */
  244.     NULL,    /* Select render */
  245.     NULL,    /* alternate command-key */
  246.     NULL,    /* SubItem list */
  247.     MENUNULL    /* filled in by Intuition for drag selections */
  248. };
  249.  
  250. struct IntuiText IText11 = {
  251.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  252.     0,0,    /* XY origin relative to container TopLeft */
  253.     NULL,    /* font pointer or NULL for default */
  254.     (UBYTE *)"Left by 10",    /* pointer to text */
  255.     NULL    /* next IntuiText structure */
  256. };
  257.  
  258. struct MenuItem MenuItem6 = {
  259.     &MenuItem7,    /* next MenuItem structure */
  260.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  261.     88,8,    /* hit box width and height */
  262.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  263.     0,    /* each bit mutually-excludes a same-level Item */
  264.     (APTR)&IText11,    /* Item render  (IntuiText or Image or NULL) */
  265.     NULL,    /* Select render */
  266.     NULL,    /* alternate command-key */
  267.     NULL,    /* SubItem list */
  268.     MENUNULL    /* filled in by Intuition for drag selections */
  269. };
  270.  
  271. struct IntuiText IText12 = {
  272.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  273.     0,0,    /* XY origin relative to container TopLeft */
  274.     NULL,    /* font pointer or NULL for default */
  275.     (UBYTE *)"Left by 1",    /* pointer to text */
  276.     NULL    /* next IntuiText structure */
  277. };
  278.  
  279. struct MenuItem MenuItem5 = {
  280.     &MenuItem6,    /* next MenuItem structure */
  281.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  282.     88,8,    /* hit box width and height */
  283.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  284.     0,    /* each bit mutually-excludes a same-level Item */
  285.     (APTR)&IText12,    /* Item render  (IntuiText or Image or NULL) */
  286.     NULL,    /* Select render */
  287.     NULL,    /* alternate command-key */
  288.     NULL,    /* SubItem list */
  289.     MENUNULL    /* filled in by Intuition for drag selections */
  290. };
  291.  
  292. struct Menu Menu2 = {
  293.     &Menu3,    /* next Menu structure */
  294.     70,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  295.     39,0,    /* Menu hit box width and height */
  296.     MENUENABLED,    /* Menu flags */
  297.     "Move",    /* text of Menu name */
  298.     &MenuItem5    /* MenuItem linked list pointer */
  299. };
  300.  
  301. struct IntuiText IText13 = {
  302.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  303.     0,0,    /* XY origin relative to container TopLeft */
  304.     NULL,    /* font pointer or NULL for default */
  305.     (UBYTE *)"Holes & all traces",    /* pointer to text */
  306.     NULL    /* next IntuiText structure */
  307. };
  308.  
  309. struct MenuItem MenuItem16 = {
  310.     NULL,    /* next MenuItem structure */
  311.     0,24,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  312.     168,8,    /* hit box width and height */
  313.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  314.     0,    /* each bit mutually-excludes a same-level Item */
  315.     (APTR)&IText13,    /* Item render  (IntuiText or Image or NULL) */
  316.     NULL,    /* Select render */
  317.     NULL,    /* alternate command-key */
  318.     NULL,    /* SubItem list */
  319.     MENUNULL    /* filled in by Intuition for drag selections */
  320. };
  321.  
  322. struct IntuiText IText14 = {
  323.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  324.     0,0,    /* XY origin relative to container TopLeft */
  325.     NULL,    /* font pointer or NULL for default */
  326.     (UBYTE *)"Holes & bottom traces",    /* pointer to text */
  327.     NULL    /* next IntuiText structure */
  328. };
  329.  
  330. struct MenuItem MenuItem15 = {
  331.     &MenuItem16,    /* next MenuItem structure */
  332.     0,16,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  333.     168,8,    /* hit box width and height */
  334.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  335.     0,    /* each bit mutually-excludes a same-level Item */
  336.     (APTR)&IText14,    /* Item render  (IntuiText or Image or NULL) */
  337.     NULL,    /* Select render */
  338.     NULL,    /* alternate command-key */
  339.     NULL,    /* SubItem list */
  340.     MENUNULL    /* filled in by Intuition for drag selections */
  341. };
  342.  
  343. struct IntuiText IText15 = {
  344.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  345.     0,0,    /* XY origin relative to container TopLeft */
  346.     NULL,    /* font pointer or NULL for default */
  347.     (UBYTE *)"Holes & top traces",    /* pointer to text */
  348.     NULL    /* next IntuiText structure */
  349. };
  350.  
  351. struct MenuItem MenuItem14 = {
  352.     &MenuItem15,    /* next MenuItem structure */
  353.     0,8,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  354.     168,8,    /* hit box width and height */
  355.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  356.     0,    /* each bit mutually-excludes a same-level Item */
  357.     (APTR)&IText15,    /* Item render  (IntuiText or Image or NULL) */
  358.     NULL,    /* Select render */
  359.     NULL,    /* alternate command-key */
  360.     NULL,    /* SubItem list */
  361.     MENUNULL    /* filled in by Intuition for drag selections */
  362. };
  363.  
  364. struct IntuiText IText16 = {
  365.     3,1,COMPLEMENT,    /* front and back text pens, drawmode and fill byte */
  366.     0,0,    /* XY origin relative to container TopLeft */
  367.     NULL,    /* font pointer or NULL for default */
  368.     (UBYTE *)"Holes",    /* pointer to text */
  369.     NULL    /* next IntuiText structure */
  370. };
  371.  
  372. struct MenuItem MenuItem13 = {
  373.     &MenuItem14,    /* next MenuItem structure */
  374.     0,0,    /* XY of Item hitbox relative to TopLeft of parent hitbox */
  375.     168,8,    /* hit box width and height */
  376.     ITEMTEXT+ITEMENABLED+HIGHCOMP,    /* Item flags */
  377.     0,    /* each bit mutually-excludes a same-level Item */
  378.     (APTR)&IText16,    /* Item render  (IntuiText or Image or NULL) */
  379.     NULL,    /* Select render */
  380.     NULL,    /* alternate command-key */
  381.     NULL,    /* SubItem list */
  382.     MENUNULL    /* filled in by Intuition for drag selections */
  383. };
  384.  
  385. struct Menu Menu1 = {
  386.     &Menu2,    /* next Menu structure */
  387.     0,0,    /* XY origin of Menu hit box relative to screen TopLeft */
  388.     63,0,    /* Menu hit box width and height */
  389.     MENUENABLED,    /* Menu flags */
  390.     "Display",    /* text of Menu name */
  391.     &MenuItem13    /* MenuItem linked list pointer */
  392. };
  393.  
  394. #define MenuList1 Menu1
  395.  
  396. struct NewWindow NewWindowStructure1 = {
  397.     0,0,    /* window XY origin relative to TopLeft of screen */
  398.     640,512,    /* window width and height */
  399.     0,5,    /* detail and block pens */
  400.     MENUPICK+CLOSEWINDOW,    /* IDCMP flags */
  401.     WINDOWCLOSE+SIMPLE_REFRESH+ACTIVATE+NOCAREREFRESH,    /* other window flags */
  402.     NULL,    /* first gadget in gadget list */
  403.     NULL,    /* custom CHECKMARK imagery */
  404.     (UBYTE *)"PCBView Window",    /* window title */
  405.     NULL,    /* custom screen pointer */
  406.     NULL,    /* custom bitmap */
  407.     5,5,    /* minimum width and height */
  408.     -1,-1,    /* maximum width and height */
  409.     CUSTOMSCREEN    /* destination screen type */
  410. };
  411.  
  412.  
  413. /* end of PowerWindows source generation */
  414.